package DAOIMPL;

import java.sql.ResultSet;

import util.DBConnection;

import DAO.CARDDAO;

public class CARDimpl implements CARDDAO {
	public boolean user_check(String admin_no) throws Exception {
		DBConnection db = new DBConnection();
		boolean isCard = false;
		String sql = "select * from card";
		java.sql.Statement st = db.getConnection().createStatement();
		ResultSet rs = st.executeQuery(sql);
		while (rs.next()) {
			if (admin_no.equals(rs.getString("admin"))) {
				isCard = true;
			}
		}
		return isCard;
	}

}
